package Day30;

public class Text3 {
    public static void main(String[] args) {
        CellPhone c1 = new CellPhone();
        c1.testWork(new Cell() {
            @Override
            public void work() {
                System.out.println("jjjjj");
            }
        });
        c1.testWork(new Cell(){
          @Override
            public void work(){
              System.out.println("pppp");
          }
        });
    }
}

interface Cell{
    public void work();
}

class CellPhone{
    public CellPhone(){

    }
    public void testWork(Cell cell){
        cell.work();
    }
}
